package com.atguigu.orderservice.client;

import com.atguigu.commonutils.ordervo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author fxy
 * @date 2022/5/15 15:47
 */
@FeignClient(value = "service-ucenter")
@Component
public interface UcenterClient {

    //根据id查询用户信息（订单） 在common建一个UcenterMember对象
    @GetMapping("/ucenterservice/member/getUserInfoOrder/{id}")
    public UcenterMemberOrder getUserInfoOrder(@PathVariable("id") String id);
}
